package com.rongc.client.freight.business.carrier.buz;

import android.content.Context;

import com.rongc.client.freight.R;
import com.rongc.client.freight.base.view.widget.CJRow.ARResponse;
import com.rongc.client.freight.utils.dic.impl.Field;
import com.rongc.client.freight.utils.dic.impl.FieldConstant;
import com.rongc.client.freight.utils.dic.impl.Table;

/**
 * Created by ccqx on 2017/7/1.
 */

public class CarrierBuz {
    public static Table getJBXXTable(Context context) {
        Table table = new Table();
        table.addField(new Field("loadTime", context.getResources().getString(R.string.supply_create_date), 1, FieldConstant.SHOWTYPE_JUMP_PW,FieldConstant.INPUTTYPE_LONG_DATE,FieldConstant.EDIT_MODE,FieldConstant.INPUTSTYLE_DATATIMESTYLE,1, R.mipmap.xiadan_icon_1));
        table.addField(new Field("startPlace", context.getResources().getString(R.string.supply_create_departure), 2, FieldConstant.SHOWTYPE_JUMP_ACTIVITY,FieldConstant.INPUTTYPE_LONG_DATE,FieldConstant.EDIT_MODE,FieldConstant.INPUTSTYLE_DATATIMESTYLE,1, R.mipmap.xiadan_icon_2));
        table.addField(new Field("endPlace", context.getResources().getString(R.string.supply_create_destination), 3, FieldConstant.SHOWTYPE_JUMP_ACTIVITY,FieldConstant.INPUTTYPE_LONG_DATE,FieldConstant.EDIT_MODE,FieldConstant.INPUTSTYLE_DATATIMESTYLE,1, R.mipmap.xiadan_icon_3));
        table.addField(new Field("truckId", context.getResources().getString(R.string.conveyance_create_car), 4, FieldConstant.SHOWTYPE_CLICK,FieldConstant.INPUTTYPE_LONG_DATE,FieldConstant.EDIT_MODE,FieldConstant.INPUTSTYLE_DATATIMESTYLE,1, R.mipmap.fbcy_icon_4));

        table.addField(new Field("startLon", 5,false));
        table.addField(new Field("startLat", 5,false));
        table.addField(new Field("endLon", 5,false));
        table.addField(new Field("endLat", 5, false));
        return table;
    }

    public static ARResponse getMockBaseResponse(){
        String str = "{\"data\":{\"date\":\"\",\"departure\":\"\"," +
                "\"destination\":\"\",\"car\":\"\"}}";
        return new ARResponse(str);
    }

}
